<template>
  <div class="box">
    <div class="picTitle">
      <img :src="dogImg" alt="" />
      <p>{{ dogName }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ['dogImg', 'dogName'],
}
</script>

<style>
.box {
    width: 600px;
    margin: 0 auto;
}
.picTitle {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  float: left;
  box-sizing: border-box;
}
.picTitle img {
  width: 200px;
  height: 160px;
}
.picTitle p {
  text-align: center;
}
</style>
